using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.VFX;

public class UpgradeStarFire:Upgrade {

	protected override void ProjectileFiringEventHandler(object _sender,ProjectileEventArgs e) {
		base.ProjectileFiringEventHandler(_sender,e);
		Projectile sender = _sender as Projectile;
		ModifierApplyStatusEffect newModifier = new ModifierApplyStatusEffect(sender,new string[0]);
		newModifier.buffType=typeof(BuffIgnited);
		newModifier.amount=0.2f;
		newModifier.amountPerDamage=0f;
		sender.AddModifier(newModifier);


		VisualEffect vfx = ParticleManager.Create("CharacterFire",sender.transform.position).GetComponent<VisualEffect>();
		vfx.transform.parent=sender.transform;
		vfx.SetFloat("Intensity",3f);
		vfx.SetVector2("Size",new Vector2(0.2f,0.2f));

	}

}
